package cn.ac.jaas.ljx.mybatis.model;

public class Student {

    private int id;
    private String name;
    private Addr addr;
    private PhoneNumber phone;
    
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Addr getAddr() {
        return addr;
    }
    public void setAddr(Addr addr) {
        this.addr = addr;
    }
    public PhoneNumber getPhone() {
        return phone;
    }
    public void setPhone(PhoneNumber phone) {
        this.phone = phone;
    }
    @Override
    public String toString() {
        return "Student [id=" + id + ", name=" + name + ", addr=" + addr.toString() + ", phone=" + phone.toString() + "]";
    }
    
}
